﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace Restful_Api.DtoParameters
{
    /// <summary>
    /// URL参数类
    /// </summary>
    public class CompanyDtoParameters
    {
        private const int MaxPageSize = 10;


        public string CompanyName { get; set; }
        public string SearchTerm { get; set; }
        public int PageNum { get; set; } = 1;
        public int PageSize { get => _pageSize; set => _pageSize = (value>MaxPageSize)?MaxPageSize:value; }

        private int _pageSize=3;
        public string OrderBy { get; set; } = "CompanyName";
        public string Flelds { get; set; }
    }
}
